import { createApp } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';
import App from './App.vue';

const routes = [
  {
    path: '/',
    redirect: '/display/index.html'
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

router.afterEach((to) => {
    window.location.href = to.path;
});

const app = createApp(App);
app.use(router);
app.mount('#app');
